How to install TWRP recovery on Android smartphones

您所在的位置:网站首页 twrp ramdisk not found How to install TWRP recovery on Android smartphones

How to install TWRP recovery on Android smartphones

#How to install TWRP recovery on Android smartphones| 来源: 网络整理| 查看: 265

© Provided by XDA Developers Quick Links What makes TWRP the preferred custom recovery choice for modders TWRP for popular Android smartphones How to install TWRP on any Android device Different functions and features in TWRP

Load Error

TeamWin Recovery Project, more widely known by its TWRP abbreviation, is the most popular custom recovery solution in the Android's aftermarket development scene. For the unaware, TWRP replaces the default recovery environment that came with your device, so you can root your device via Magisk, flash custom ROMs and kernels, create full backups, and so on.

If you’re wondering how to get TWRP on your device, this guide should help you with that. In case you don’t see your device listed or you see a misplaced link, send a message to the author (SkandaH on the forums) with the device details.

What makes TWRP the preferred custom recovery choice for modders

One of the reasons Android modders swear by TWRP is its active development and support for a wide variety of devices, with new devices being added to the official build roster regularly. Thanks to the open-source nature of the project, aftermarket developers can also port TWRP unofficially to many other devices. The internal structure of the custom recovery is quite modular, which is why you can find numerous forks as well as further functionality enhancements such as dual boot mods based on TWRP.

DISCLAIMER: Replacing the stock recovery with TWRP usually needs an unlocked bootloader, which may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. XDA and the author do not take any responsibility for your device. Install TWRP at your own risk and only if you understand what you are doing!

TWRP for popular Android smartphones

Have you already unlocked the bootloader of your device? Eager to enjoy the first step towards the world of modding? Head to the following section to begin the journey. You should find device-specific TWRP installation guides for the latest flagship models from every major OEM below.

Asus

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Asus ROG Phone II

I001D

Click here

2.

Asus ROG Phone 3

I003D

Click here

3.

Asus ROG Phone 5 Asus ROG Phone 5s

I005D

Click here

4.

Asus ROG Phone 6 and 6 Pro

AI2201

Click here

5.

Asus Zenfone 5Z

Z01RD

Click here

6.

Asus Zenfone 6

I01WD

Click here

7.

Asus Zenfone 7 and 7 Pro

I002D

Click here

8.

Asus Zenfone 8

I006D

Click here

9.

Asus Zenfone 9

AI2202

Click here

For other Asus devices, kindly check out the Asus section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Google

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Google Pixel

sailfish

Click here

2.

Google Pixel XL

marlin

Click here

3.

Google Pixel 2

walleye

Click here

4.

Google Pixel 2 XL

taimen

Click here

5.

Google Pixel 3

blueline

Click here

6.

Google Pixel 3 XL

crosshatch

Click here

7.

Google Pixel 3a

sargo

Click here

8.

Google Pixel 3a XL

bonito

Click here

9.

Google Pixel 4

flame

Click here

10.

Google Pixel 4 XL

coral

Click here

11.

Google Pixel 4a

sunfish

Click here

12.

Google Pixel 4a 5G

bramble

Click here

13.

Google Pixel 5

redfin

Click here

14.

Google Pixel 5a

barbet

Click here

For other Google devices, kindly check out the Google section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Motorola

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Moto G30

caprip

Click here

2.

Motorola Edge Plus

burton

Click here

3.

Motorola Edge S/Moto G100

nio

Click here

4.

Motorola Edge 20 Pro/Edge S Pro

pstar

Click here

For other Motorola devices, kindly check out the Motorola section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Nvidia

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Nvidia Shield Android TV 2015/2017 and 2019

foster and mdarcy

Click here

For other Nvidia devices, kindly check out the Nvidia section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

OnePlus

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

OnePlus 7

guacamoleb

Click here

2.

OnePlus 7 Pro

guacamole

Click here

3.

OnePlus 7T

hotdogb

Click here

4.

OnePlus 7T Pro

hotdog

Click here

5.

OnePlus 8

instantnoodle

Click here

6.

OnePlus 8 Pro

instantnoodlep

Click here

7.

OnePlus 8T

kebab

Click here

8.

OnePlus 9

lemonade

Click here

9.

OnePlus 9 Pro

lemonadep

Click here

10.

OnePlus 9R

lemonades

Click here

11.

OnePlus 10 Pro

negroni

Click here

12.

OnePlus Nord

avicii

Click here

13.

OnePlus Nord 2

denniz

Click here

14.

OnePlus Nord 2T

karen

Click here

15.

OnePlus Nord CE

ebba

Click here

16.

OnePlus Nord CE 2

ivan

Click here

17.

OnePlus Nord N10

billie8

Click here

18.

OnePlus Nord N100

billie2

Click here

19.

OnePlus Nord N200

dre

Click here

For other OnePlus devices, check out the OnePlus section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Samsung

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Samsung Galaxy A53 5G

a53x

Click here

2.

Samsung Galaxy Note 20

c1s/c1q

Exynos variant / Qualcomm Snapdragon variant

3.

Samsung Galaxy Note 20 Ultra

c2s/c2q

Exynos variant / Qualcomm Snapdragon variant

4.

Samsung Galaxy Tab S7 Samsung Galaxy Tab S7+

gts7xl

Click here

5.

Samsung Galaxy Tab S8 Samsung Galaxy Tab S8+ Samsung Galaxy Tab S8 Ultra

gts8

Click here

6.

Samsung Galaxy S21

o1s/o1q

Exynos variant / Qualcomm Snapdragon variant

7.

Samsung Galaxy S21+

t2s/t2q

Exynos variant / Qualcomm Snapdragon variant

8.

Samsung Galaxy S21 Ultra

p3s/p3q

Exynos variant / Qualcomm Snapdragon variant

9.

Samsung Galaxy S21 FE

r9s/r9q

Exynos variant / Qualcomm Snapdragon variant

10.

Samsung Galaxy S22

r0s/r0q

Exynos variant / Qualcomm Snapdragon variant

11.

Samsung Galaxy S22+

g0s/g0q

Exynos variant / Qualcomm Snapdragon variant

12.

Samsung Galaxy S22 Ultra

b0s/b0q

Exynos variant / Qualcomm Snapdragon variant

13.

Samsung Galaxy S23

dm1q

Click here

14.

Samsung Galaxy S23+

dm2q

Click here

15.

Samsung Galaxy S23 Ultra

dm3q

Click here

16.

Samsung Galaxy Z Flip 3

b2q

Click here

17.

Samsung Galaxy Z Fold 4

q4q

Click here

For other Samsung devices, kindly check out the Samsung section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Sony

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Sony Xperia 1

griffin

Click here

2.

Sony Xperia 1 II

pdx203

Click here

3.

Sony Xperia 1 III

pdx215

Click here

4.

Sony Xperia 5 II

pdx206

Click here

5.

Sony Xperia 10

kirin

Click here

6.

Sony Xperia 10+

mermaid

Click here

7.

Sony Xperia 10 II

pdx201

Click here

For other Sony Xperia devices, kindly check out the Sony section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Xiaomi

Sr. no.

Device

Codename and device forum

TWRP installation guide

1.

Mi 10T Lite/Mi 10i/Redmi Note 9 Pro 5G

gauguin

Click here

2.

Mi 11

venus

Click here

3.

Mi 11 Lite 5G

renoir

Click here

4.

Mi 11 Pro and Mi 11 Ultra

star and mars

Click here

5.

Mi 11X/Poco F3/Redmi K40

alioth

Click here

6.

Mi 11X Pro/Mi 11i /Redmi K40 Pro

haydn

Click here

7.

Mi Mix 4

odin

Click here

8.

Mi A2

jasmine_sprout

Click here

9.

Mi A3

laurel_sprout

Click here

10.

Poco F4/Redmi K40S

munch

Click here

11.

Poco F4 GT/Redmi K50 Gaming

ingres

Click here

12.

Poco X3

surya

Click here

13.

Poco X3 GT/Redmi Note 10 Pro 5G

chopin

Click here

14.

Poco X3 Pro

vayu

Click here

15.

Redmi 9 Power/9T

lime

Click here

16.

Redmi Note 10

mojito

Click here

17.

Redmi Note 10 5G/Redmi Note 11SE/Poco M3 Pro 5G Redmi Note 10T 5G

camellia/camellian

Click here

18.

Redmi Note 10 Pro

sweet

Click here

19.

Redmi Note 10S

rosemary

Click here

20.

Redmi Note 11

spes/spesn

Click here

21.

Redmi Note 11 Pro 5G/Redmi Note 11 Pro+ 5G/Redmi Note 11E Pro/Poco X4 Pro 5G

veux

Click here

22.

Redmi Note 11S/Poco M4 Pro 4G

fleur

Click here

23.

Xiaomi 11 Lite 5G NE

lisa

Click here

24.

Xiaomi 11T

agate

Click here

25.

Xiaomi 11T Pro

vili

Click here

26.

Xiaomi 12

cupid

Click here

27.

Xiaomi 12 Pro

zeus

Click here

28.

Xiaomi 12S

mayfly

Click here

29.

Xiaomi 12S Pro

unicorn

Click here

30.

Xiaomi 12S Ultra

thor

Click here

31.

Xiaomi 12T Pro/Redmi K50 Ultra

diting

Click here

32.

Xiaomi 12X

psyche

Click here

33.

Xiaomi 13

fuxy

Click here

34.

Xiaomi 13 Pro

nuwa

Click here

35.

Xiaomi Pad 5

nabu

Click here

For other Mi, Redmi, and Poco branded devices, kindly check out the Xiaomi section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

How to install TWRP on any Android device

Before getting started with TWRP, make sure that:

You have access to a PC/Mac/Chromebook with ADB and Fastboot installed. On your device, go into Settings -> About device and find the Build Number. Tap on it 7 times to enable Developer options. Go back to the Settings menu and find the Developer options entry (on older Android versions), or tap on System -> Advanced, and go into Developer options. Finally enable USB debugging. The bootloader of the target Android device is unlocked. For Samsung devices, unlocking the bootloader will trip the Knox warranty bit. There is no way to revert it other than a installing a new motherboard. You'll also lose access to OTA and a number of software features on an unlocked bootloader. Step 1: Downloading TWRP for your device

Let’s start by downloading the appropriate TWRP image for your device. You can find a list of devices that are officially supported by following the link below.

Download TWRP

As mentioned earlier, you may also find unofficial TWRP builds for your device in our forums.

Step 2: Flashing TWRP

Since TWRP replaces the stock recovery image of your device, the installation process depends on the target device's partition scheme. Users can easily check it by running the following command in ADB shell or a Terminal Emulator app:

getprop ro.build.ab_update

This will return "true" if the device supports A/B partitions. On legacy A-only devices, the output should be blank.

Case I: Devices with A-only partition scheme

If you have a device that still uses the A-only partition scheme, then you should be able to directly replace the stock recovery image with TWRP via Fastboot.

Copy the TWRP image to a suitable location on your PC. You can even put it on the folder where the Fastboot binary is located. From your PC, open a command prompt/terminal and type: adb reboot bootloader Rename the TWRP image to twrp.img and type:

fastboot flash recovery twrp.img

fastboot reboot

Many devices will replace a custom recovery automatically during first boot. To prevent this, search to find the proper key combo for your device to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. On some devices, you can also try to temporary boot the downloaded image using the following command: fastboot boot twrp.img Once TWRP is booted, TWRP will patch the stock ROM to prevent it from replacing TWRP. If you don't follow this step, you will have to repeat the install. In cert Congrats! TWRP is now successfully installed on your device.

Power users can also flash the custom recovery without using a PC, but the process needs root access. To do so, download the appropriate TWRP image file to your phone, rename it to twrp.img, and place it in the root of the internal storage (/sdcard). Run the following commands via adb shell or a terminal emulator app:

su

dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery

On some rare occasions, your device doesn't feature a standalone recovery partition. Instead, the recovery is part of the boot image. The TWRP maintainers for such devices may repurpose a different partition as the recovery environment. As a result, the aforementioned flashing process might need some tweaking on those devices.

Case II: Devices with A/B partition scheme

In case of a device having A/B partition scheme, the recovery environment is fused with the boot image. Due to this design, you need to temporarily boot TWRP first and later perform a more permanent installation within the custom recovery environment.

Copy the TWRP image to a suitable location on your PC. You can even put it on the folder where the Fastboot binary is located. From your PC, open a command prompt/terminal and type: adb reboot bootloader Rename the TWRP image to twrp.img and type the following to boot it temporarily: fastboot boot twrp.img Copy the twrp.img file to the device: adb push twrp.img /sdcard Navigate to the Advanced menu of TWRP and tap on "Install Recovery Ramdisk": Choose the twrp.img file from the device's internal storage. Swipe to install and then reboot. Congrats! TWRP is now successfully installed on your device.

Special Case: Samsung

Samsung Galaxy devices don't a traditional Fastboot interface, hence the installation process of TWRP on them is quite different.

Download and extract Odin (Samsung's Flash Tool) to your computer. On your PC, download the *.tar image of TWRP for the target device. Reboot to download mode. Open Odin on your PC, and flash that tar file in the [AP] slot. Hold the recovery mode key-combo (usually volume up and power) while Odin is flashing until you are in TWRP environment. Once you're in, you might need to flash Multidisabler to semi-permanently disable a number of device protection features and services that become problematic on a modified device. Congrats! TWRP is now successfully installed on your device.

Modern Android devices usually ship with a built-in Verified Boot (AVB) feature, which is designed to prevent you from being able to boot after any kind of system modification. To bypass this, you will have to flash a blank vbmeta image with certain parameters. The TWRP maintainer for your device is expected to clarify the scenario, hence do read the flashing instruction very carefully.

Step 4: Verification

The last step is to verify that the custom recovery is working properly. Use the device-specific key-combo or the adb reboot recovery command on an already running device to boot to the recovery mode. If you can see the menu like the one shown below, it means you have successfully install TWRP. Great job!

Lastly, be sure to download the official app for the custom recovery project from Google Play. The app will alert you when new versions of the custom recovery are available. It'll also let you download the latest version right from your device, provided you've root access.

Official TWRP App Developer: Team Win LLC Price: Free 3.4 Download Different functions and features in TWRP

Alright, you have successfully installed TWRP on your Android smartphone. Now what? When you boot into TWRP for the first time, it might seem quite intimidating. You will see a ton of options and it's important to know what you're doing. You don't want to end up wiping your system partition by mistake and be stuck without an OS to boot into! Here are some brief explanations on what each option in TWRP does and why/when you would need to use it.

Install

This is the first option you see as soon as you're in TWRP and is probably the main reason you even installed a custom recovery. The main purpose of a custom recovery like TWRP is to flash zip files or img files. This can be a custom ROM, a tweak, a custom kernel, or a package like Magisk to root your device. Selecting this option will show you the list of files and folders on your phone's storage.

2 Images Close

You can select the zip file that you want to flash from here and install it. If you wish to install an img file like a kernel or a different recovery, select the Install Image option at the bottom right. You can even switch between multiple storage options like your phone's internal memory, an external SD card, or even a USB drive connected via OTG, based on where your file is stored.

Wipe

This is essentially the option to factory reset your device, but with granular control. You can wipe specific portions of your device from this section like the cache, data, etc. Generally, you will need to wipe your device via this option before installing a custom ROM. You can read more about what specific partitions you need to wipe by heading to our how to install a custom ROM tutorial.

2 Images Close

Be careful about what you wipe here. If you're unaware of what you're doing, you can end up wiping your system partition and end up without any OS installed or wiping your internal storage and losing your photos and files.

Backup

This is quite straightforward. You can take a backup of your complete smartphone via the backup option. It's one of the best ways to take a backup of your Android phone since it includes everything from homescreen setup to contacts, messages, apps, and app data. It essentially clones your phone the way it is and creates a backup file that can be restored in case you end up bricking your device.

2 Images Close

It's always a good idea to take a full backup of your phone via TWRP before modifying something. You can even backup your EFS partition from here which has saved me several times when I lost my IMEI after flashing a new ROM a few years back. You can choose to take a backup into your internal storage, an external SD card, or a USB drive via the Select Storage option.

Restore

If you have a TWRP backup that you'd taken previously, you can restore it from this section. If you ever end up in a bootloop or face issues after making any changes to your phone, you can restore a backup to make things right.

Mount

Every phone has certain partitions where corresponding data is stored. There's the System partition (/system) where your OS is installed, the Data partition (/data) where all your files are stored, the Cache partition (/cache) where cached data is stored, etc. This section allows you to mount or unmount these partitions inside TWRP. In simple terms, you can decide whether or not you want certain partitions on your device to be accessible via TWRP.

For example, If you mount the Data partition, you will be able to view and make changes to the files stored on your device. If you unmount the Data partition, TWRP won't be able to access your storage. If you've connected an external USB drive via OTG to flash files or take a backup/restore it, you will first have to mount it via this section by selecting the USB-OTG option. You can also enable/disable MTP from here. if MTP is enabled, you can access your phone's internal storage while in TWRP itself when it's connected to a PC.

Settings

This panel is similar to the Settings menu on Android. You can change various functions like time zone and format, vibration intensity, navbar orientation and style, screen brightness, and the language inside TWRP.

5 Images Close

Some unofficial versions of TWRP like Orange Fox Recovery even have the option to change themes inside the Settings tab.

Advanced

The Advanced section in the TWRP menu gives you the option to copy logs if there are certain error codes you want to share later.

2 Images Close

You can also access the terminal from here, sideload apps and files via ADB, and also use an in-built file manager if you want to make changes to some files. There's also an option to partition your SD card here.

Reboot

Once you've flashed a file or finished whatever work you had booted into TWRP for, you can reboot into the system from here or choose to power off your device.

You also have two other options. The first one is to reboot back into recovery, and the second one is to reboot into the bootloader which essentially puts your phone in fastboot mode. This is helpful if you want to flash something via fastboot on your PC.

We hope this guide not only points you towards the right threads for installing TWRP on your device but also provides general TWRP installation instructions that can be applied for a large majority of Android devices generally. We'll be updating this guide with links to further guides for specific phones, so check back again in the future!

Read More


【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3